
import GradePage from "@/components/infoManage/Grade";
import ClassPage from "@/components/infoManage/Class";
import CoursePage from "@/components/infoManage/Course";
import CourseSyncPage from "@/components/infoManage/CourseSync";
import LessonPage from "@/components/infoManage/Lesson";

import TeacherPage from "@/components/userManage/Teacher";
import StudentPage from "@/components/userManage/Student";

import ArrCourse from "@/components/courseManage/ArrCourse"
import SelectPage from "@/components/courseManage/SelectCourse"

import PeriodPage from "@/components/infoManage/Period"


export default {
    path: '/home',
    // 在vue中@表示src目录
    component: () => import('@/views/Home'),

    // 二级路由
    children: [
        {
            path: '/',
            redirect: '/home/schedule',//重定向
        },
        {
            path: 'schedule',
            name: 'Schedule',
            component: () => import('@/components/infoManage/Schedule')
        },
        {
            path: 'grade',
            name: 'Grade',
            component: GradePage
        },
        {
            path: 'class',
            name: 'Class',
            component: ClassPage
        },
        {
            path: 'course',
            name: 'Course',
            component: CoursePage
        },
        {
            path: 'coursesync',
            name: 'CourseSync',
            component: CourseSyncPage
        },
        {
            path: 'lesson',
            name: 'Lesson',
            component: LessonPage
        },
        {
            path: 'period',
            name: 'Period',
            component: PeriodPage
        },
        {
            path: 'selectcourse',
            name: 'SelectCourse',
            component: SelectPage
        },
        {
            path: 'teacher',
            name: 'Teacher',
            component: TeacherPage
        },
        {
            path: 'student',
            name: 'Student',
            component: StudentPage
        },
        {
            path: 'arrcourse',
            name: 'arrcourse',
            component: ArrCourse
        }
    ]
}